import request from '@/utils/request'

export function editInfo(data) {
    return request({
        url: 'factory/setting/editInfo',
        method: 'post',
        data
    })
}

//保存服务
export function addService(data) {
    return request({
        url: 'factory/service/save',
        method: 'post',
        data
    })
}

//服务详情
export function getDetail(data){
    return request({
        url:'factory/service/getDetail',
        method:'post',
        data
    })
}

//删除服务
export function deleteData(data){
    return request({
        url:'factory/service/delete',
        method:'post',
        data
    })
}

//支付
export function pay(data){
    return request({
        url:'factory/buy/pay',
        method:'post',
        data
    })
}

//设置
export function config(){
    return request({
        url:'factory/setting/config',
        method:'post'
    })
}

//设置详情
export function configDetail(data){
    return request({
        url:'factory/factory/getConfig',
        method:'post',
        data
    })
}
//设置详情
export function editConfig(data){
    return request({
        url:'factory/factory/editConfig',
        method:'post',
        data
    })
}
//评论回复
export function reply(data){
    return request({
        url:'factory/comment/reply',
        method:'post',
        data
    })
}